Maurita Plouff, Eric Raymond MacHack 15, 6/24/2000
We got tired of tedious decision making for pizza orders! So we automated it.
This was written in python on Eric's linux box and moved to his brand-new iBook, which was given to him that very afternoon. He needed a real system. After loading MacPython to the iBook, all he had to do was to use ResEdit to change the type/creator codes (TEXT/Pyth), reset the line breaks from linux-style to Mac-style, save the .py file, and -- AMAZING -- it ran, including the GUI, of which Eric is inordinately proud. (after all, what can you expect from a linux guy?)
You'll have to have MacPython on your system if you want to run this wonderful hack.
Types of Pizzas (defined)
PLAIN - just cheese only
VEGAN - lotsa veggies, no cheese
VEGETARIAN cheese, veggies, seasonings
MEGA-MEAT cheese, lotsa meat, seasonings (no veggies)
MEAT-PURIST cheese, only 1 meat, seasonings
MOSTLY MEAT cheese, several meats, one veggie, seasonings
MEAT & VEGGIES cheese, one meat, several veggies, seasonings
Usage notes: you need to know how many pizzas you want to order. Of those, you may define the number of special pizzas defined either by an absolute number or a percentage (for example, 3 or 10%) If you request more special pizzas than your desired total, you'll be told you have a "bogus order". If you request fewer special pizzas than your desired total, the remaining pizzas will be evenly divided between "mostly meat" and "meat & veggies".
Within these types of pizzas, pies are assembled randomly.
If you don't like the list of pizzas, just generate a new batch.